#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

struct CameraReturnInfo
{
    int pointCount;
    double  x;
    double y;
    double r;
};

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private slots:
    void on_pushButton_pat_clicked();

    void on_pushButton_patVisionData_clicked();

    void on_pushButton_doublenantest_clicked();

    void on_pushButton_prTest_clicked();

    void on_pushButton_testKebaVision_clicked();

private:
    int processReceiveData_3value(const QByteArray &dataIn,
                                               QVector<CameraReturnInfo> &resultOut);
    int processReceiveData_3value_single(QString tmp_frame, CameraReturnInfo &resultOut);

    int processReceiveData_keba(const QByteArray& dataIn, QVector<QVector<CameraReturnInfo>> &resultOut);
    int processReceiveData_keba_oneTime(const QString &dataIn, QVector<CameraReturnInfo> &resultOut);
    int processReceiveData_keba_single(QString tmp_frame, CameraReturnInfo &resultOut);


private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
